package cate.game.event.task;

import cate.common.table.d.GDFunc;
import cate.game.event.GameEventListener;

public class TaskGetRewardEventListener implements GameEventListener<TaskGetRewardEvent> {

    @Override
    public void onEvent(TaskGetRewardEvent gameEvent) {
        gameEvent.getRole().getRes().leader.hallows.checkHollowRelease();
        if (gameEvent.getTaskItem() != null && gameEvent.getTaskItem().funcId == GDFunc.HALLOWS) {
            gameEvent.getRole().getHistory().action.hallowTaskRewardTimes();
        }
    }
}
